package com.bo.threadState;

/**
 * @Author: gpb
 * @Date: 2024/7/13 22:46
 * @Description:
 */
public class TIME_WAITING {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        });
        thread.start();
        Thread.sleep(500);
        System.out.println(thread.getState());
    }
}
